#!/usr/bin/env python
"""
    Created by huangyi at 2020/1/11.
    Description:
    Changelog: all notable changes to this file will be documented
"""
from ...expression.context import Context
from ...expression.terminal.number_expression import NumberExpression


class FloatExpression(NumberExpression):

    def __init__(self, value: str):
        self.value = value

    def interpret(self, ctx: Context):
        return float(self.value)

    def __str__(self):
        return self.value

    def __repr__(self):
        return str(self)

